<?php
/**
 * Created by PhpStorm.
 * User: 郑合达
 * Date: 2018/12/10
 * Time: 16:33
 */

namespace app\common\validate;


use think\Validate;

class Topic extends Validate
{
    protected $rule = [
        'topic_title'                      => 'require',  //必填
        'topic_margin_top'                    => 'number',

    ];

    protected $message = [
        'topic_title.require'                => '请填写专题名称',
        'topic_margin_top.number'        => '距顶部值只能数字',
    ];
}